import { httpAction } from '@/api/manage';
import request_sl from '@/utils/request_sl';

// 获取表中树结构数据
export const getOdsTreeByType = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getOdsTreeByType' + '?treeType=' + params,
    method: 'GET',
    loading: true,
  });
};
// 列表数据
export const getGmdcMeasuringToolsPage = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getGmdcMeasuringToolsPage',
    method: 'POST',
    data: params,
    loading: true,
  });
};
// 指标卡
export const getGmdcMeasuringToolsCount = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getGmdcMeasuringToolsCount',
    method: 'GET',
    params: params,
    loading: true,
  });
};
/** 工装信息 */
//指标卡
export const getGmdcToolingCount = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getGmdcToolingThingCount',
    method: 'GET',
    params: params,
    loading: true,
  });
};
// 列表数据
export const getGmdcMeasuringToolingPage = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getGmdcToolingThingPage',
    method: 'POST',
    data: params,
    loading: true,
  });
};
/** 物料信息*/
//指标卡
export const getGmdcMaterialCount = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getGmdcMaterialCount',
    method: 'GET',
    params: params,
    loading: true,
  });
};
// 列表数据
export const getGmdcMaterialPage = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getGmdcMaterialPage',
    method: 'POST',
    data: params,
    loading: true,
  });
};
/** 大客BOM*/
//指标卡
export const getOdsMbomCount = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getOdsMbomCount',
    method: 'POST',
    params: params,
    loading: true,
  });
};
// 列表数据
export const getOdsMbomPage = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getOdsMbomPage',
    method: 'POST',
    data: params,
    loading: true,
  });
};
/** 支线BOM*/
//指标卡
export const getOdsApiSfSzfjOnetimeCount = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getOdsApiSfSzfjOnetimeCount',
    method: 'POST',
    params: params,
    loading: true,
  });
};
// 列表数据
export const getOdsApiSfSzfjOnetimePage = (params) => {
  return request_sl({
    url: '/sl/api/ods/equipment/getOdsApiSfSzfjOnetimePage',
    method: 'POST',
    data: params,
    loading: true,
  });
};
